@import url(../../../styles/themes/index.less);
@import url(./dark.less);
@import url(./light.less);

.mz-panel {
  position: relative;
  // flex: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  // overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  &-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3px;
    margin-bottom: 5px;
    height: 32px;
    overflow: hidden;
    padding: 0 5px 4px 26px;

    &-left {
      display: flex;
      align-items: center;
      overflow: hidden;
      margin-right: 5px;
      z-index: 1;

      .icon-left {
        display: flex;

        > img {
          width: 18px;
        }
      }

      .title {
        font-size: 16px;
        font-family: @font-title-family;
        font-weight: 400;
        // font-style: italic;
        padding-right: 2px;
        display: inline-block;
        margin-right: 3px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        color: #ffffff;
        line-height: 21px;
        letter-spacing: 1.44px;
        text-shadow: 0px 2px 1px rgba(62, 80, 118, 0.69);
      }

      .icon-info {
        display: flex;

        img {
          width: 23.5px;
        }
      }
    }

    &-right {
      flex-shrink: 0;
      z-index: 1;
    }

    .bg-box {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      font-size: 0;
    }
  }

  @contentLeft: 5.4px; // 距离左边的距离

  &-content {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    &-main {
      display: flex;
      height: 100%;
      margin-left: @contentLeft;
      position: relative;
      overflow: hidden;
      z-index: 1;
      padding: 10px;
    }
  }

  // background
  .mz-panel-bg {
    position: absolute;
    top: 0;
    left: @contentLeft;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    font-size: 0;
    z-index: -1;
  }

  .bg-box {
    display: flex;

    > div {
      height: 100%;
    }
  }

  // 二级面板样式
  &.second {
    .title {
      margin-bottom: 5px;
      .subhead();
    }
    .mz-panel-content {
      padding: 10px;
    }
    .mz-panel-content-main {
      margin: 0;
      padding: 0;
    }
    .mz-panel-bg {
      left: 0;
    }
  }
}
